<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Edit Page</title>
</head>
<body>
<form action="{% url 'tools:create_case' %}" method="post">
    {% csrf_token %}
    {% if case %}
        <input type="hidden" name="id" value="{{ case.id }}">
        <label>用例id
            <input type="text" name="caseid" value="{{ case.case_id }}"/>
        </label>
        <label> 用例名
            <input type="text" name="casename" value="{{ case.case_name }}">
        </label>
    {% else %}
        <input type="hidden" name="id" value="0">
        <label>用例id
            <input type="text" name="caseid" value=""/>
        </label>
        <label> 用例名
            <input type="text" name="casename" value="">
        </label>
    {% endif %}

    <input type="submit">
</form>
</body>
</html>